package com.wugui.datax.job.handler;

import com.wugui.datatx.core.biz.model.ReturnT;
import com.wugui.datatx.core.biz.model.TriggerParam;
import com.wugui.datatx.core.handler.IJobHandler;
import com.wugui.datatx.core.handler.annotation.JobHandler;
import com.wugui.datax.job.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@JobHandler(value = "studentTransHandler")
@Component
public class StudentTransHandler extends IJobHandler {

    @Autowired
    private StudentService studentService;

    @Override
    public ReturnT<String> execute(TriggerParam tgParam) throws Exception {
        System.out.println("============学生成绩计算===================");
        studentService.trans();
        return ReturnT.SUCCESS;
    }
}
